package com.zelix;

import java.io.*;

public abstract class uj extends tj
{

    private static String z[];

    public uj(int j)
    {
        super(j);
    }

    protected void a(nh nh1, int j, int k)
    {
        it it1;
        int l;
label0:
        {
            l = si.g;
            it1 = nh1.c();
            if(!it1.k())
            {
                nh1.a(z[5] + a() + z[2] + d() + z[3]);
                if(l == 0)
                    break label0;
            }
            if(it1.u())
                nh1.a(z[5] + a() + z[2] + d() + z[4]);
        }
        PrintWriter printwriter;
        cs cs1;
        gv gv1;
        String s1;
        File file;
label1:
        {
            printwriter = nh1.n();
            cs1 = new cs(printwriter, vh.e().length(), nh1.y());
            gv1 = gv.b();
            String s = ((String)super.k.elementAt(0)).trim();
            if(s.length() == 0)
                nh1.a(z[8] + a() + z[2] + d() + ".");
            s1 = oc.c(s);
            if(oc.a(s1))
            {
                file = new File(nh1.f(), s1);
                if(l == 0)
                    break label1;
            }
            file = new File(s1);
        }
label2:
        {
            printwriter.println(vh.e() + z[6] + it1.o() + z[10] + file.getPath() + "\"");
            System.out.println(vh.e() + z[6] + it1.o() + z[7]);
            if(file.exists())
                break label2;
            boolean flag = file.mkdirs();
            if(!flag)
            {
                nh1.a(z[0] + s1 + z[9] + a() + z[2] + d() + ".");
                if(l == 0)
                    break label2;
            }
            if(nh1.z())
                printwriter.println(z[1] + file.getAbsolutePath() + "\"");
        }
        a(it1, file, ((bs) (cs1)), nh1, ((yw) (gv1)));
    }

    int i()
    {
        byte byte0;
label0:
        {
            byte0 = 3;
            String s = (String)super.j.get(z[13]);
            if(s == null)
                break label0;
            if(s.equals(z[12]))
            {
                byte0 = 1;
                if(si.g == 0)
                    break label0;
            }
            if(s.equals(z[11]))
                byte0 = 2;
        }
        return byte0;
    }

    abstract void a(it it1, File file, bs bs, nh nh1, yw yw);

    private static String z(char[] chs) {
        byte key = 0;
        for (int i = 0; i < chs.length; i++) {
            switch (i % 5) {
                case 0:
                    key =0x25;
                    break;
                case 1:
                    key =26;
                    break;
                case 2:
                    key =42;
                    break;
                case 3:
                    key =121;
                    break;
                case 4:
                    key =34;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static 
    {
        String as[];
        as = new String[14];
        as[0] = "fu_\025F\005tE\r\002FhO\030V@:N\020P@y^\026P\\:\b";
        as[1] = ",YX\034CQ\177NYFLhO\032VJhSY";
        as[2] = "\007:Y\rCQ\177G\034LQ:K\r\002IsD\034\002";
        as[3] = "\005xO\037MW\177\n\026R@tC\027E\005yF\030QV\177Y";
        as[4] = "\005mC\rJ\005tEYAI{Y\nGV:E\tGK\177N";
        as[5] = "dn^\034OUn\n\rM\005oY\034\002\007";
        as[6] = "\005IK\017KK}\n";
        as[7] = "\005yF\030QV\177YW\f\013";
        as[8] = "hsY\nKK}\n\035KW\177I\rMWc\n\027CH\177\n\020L\0058";
        as[9] = "\007:C\027\002\007";
        as[10] = "\005yF\030QV\177YYKK:\b";
        as[11] = "KuD\034";
        as[12] = "DvF";
        as[13] = "DhI\021KS\177i\026OUhO\nQLuD";
        for(int i = 0; i<as.length; i++){
            as[i] = z(as[i].toCharArray());
        }
        z = as;

    }
}